home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _IsClassName.au3 < prev    next >
Text File  |  2007-09-08  |  213b  |  8 lines

  1. #include <Misc.au3>
  2. Run("Notepad")
  3. WinWaitActive("[CLASS:Notepad]")
  4. $hWnd = WinGetHandle("[LAST]")
  5. If _IsClassName($hWnd,"Notepad") Then
  6.     Msgbox(0,"Classname","Active window is an Notepad classname")
  7. EndIf
  8.